package com.imooc.service;

public class A {
    static {
        System.out.println("A STATIC ");
    }

    public A() {
        System.out.println("A  ");

    }
}
class B extends A{
    static {
        System.out.println("b STATIC ");
    }

    public B() {
        System.out.println("B  ");

    }
}
class  C{
    public static void main(String[] args) {
        A a = new B();
         a = new B();
    }
}

